
class TSeed{
  constructor(){
    this.data={
      config:{
        sysTitle:"粮库害虫诱捕系统",
        copyRight:"中科芯禾",
        logoImg:"https://ai.seedlight.cn:31000/iot-web-manage/img/home-logo.8be66afc.svg"
      },
      userInfo:{},
      grain:{},
      barns:{},
      devices:{}, 
      currentDeviceSn:""      
    };
  };
  
  callApi(apiPath , apiPs){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acCheckLogin(grainCode , userCode , pwd ){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acChangePwd(pwd0,pwd1,pwd2){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acResetLogin( ){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  getGrain(){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  getBarns(){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  getDevices(){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  setDevExData(devInfo){
    var me = this;
    try {
      
    } catch (error) {
      console.log(error); 
    }
  };
  getDevInfo(snCode){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acDevInput(snCode){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acDevSetLight(snCode , lightState){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acDevSetSplits(snCode , slipts){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
  acDevSetDeployInfo(snCode , barnId , position){
    var me = this;
    return new Promise((success, faild)=>{
      try {
        
      } catch (error) {
        console.log(error);
        success();
      }
    })
  };
}
const seed = new TSeed();
export {
  seed
}